package com.dream.cgomall.entity;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class CgoGoodTrollet {
    private int id;//编号id
    private int userId;//用户id
    private int goodId;//商品id
    private String goodAttr;//商品规格
    private int goodNum;//数量
    private double price;//价格
    private LocalDateTime addTime;//添加时间

    public CgoGoodTrollet() {
    }

    public CgoGoodTrollet(int id,int userId, int goodId, String goodAttr,int goodNum,double price){
       this.id=id;
        this.userId = userId;
        this.goodId = goodId;
        this.goodAttr = goodAttr;
        this.goodNum=goodNum;
        this.price=price;
    }
    public CgoGoodTrollet(int userId, int goodId, String goodAttr,int goodNum,double price,LocalDateTime addTime){
        this.addTime=addTime;
        this.userId = userId;
        this.goodId = goodId;
        this.goodAttr = goodAttr;
        this.goodNum=goodNum;
        this.price=price;
    }


}
